package com.hua.springCloud.controller;

import com.hua.springCloud.service.MessageSendImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageController {
    @Autowired
    private MessageSendImpl messageSend;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        messageSend.send();
        return "发送成功~~~";
    }
}
